package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.InventoryInoutDetail;
import com.wing.order.model.request.InventoryInoutDetailForm;
import com.wing.order.model.response.InventoryInoutDetailVO;

import java.util.List;
import java.util.Map;

/**
 * 入库计划单明细-Service
 *
 * @author
 */
public interface InventoryInoutDetailService extends IService<InventoryInoutDetail> {

    /**
     * 添加
     *
     * @param inventoryInoutDetailForm
     * @return
     */
    int add(InventoryInoutDetailForm inventoryInoutDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<InventoryInoutDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<InventoryInoutDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    InventoryInoutDetailVO get4appById(Long id);

    /**
     * 查询生产入库计划产品信息
     * @param planId
     * @param skuCode
     * @return
     */
    InventoryInoutDetail getInventoryInoutDetail(Long planId,String skuCode);
}
